package com.wlf.demo.pageHelper.model;

public enum UserStatus {

    NORMAL(1), DIMISION(2), DELETE(3);

    private int value;

    UserStatus(int value) {
        this.value = value;
    }

    public static UserStatus valueOf(int value) {
        for(UserStatus userStatus : UserStatus.values()) {
            if(userStatus.value == value)
                return userStatus;
        }
        return null;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

}
